<template>
  <a-drawer
    width="45%"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{ height: 'calc(100vh - 100px)', overflow: 'auto' }"
    @close="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <a-row :gutter="32">
          <a-col :span="12">
            <a-form-model-item label="创建者" prop="userId">
              <a-input v-model="form.userId" placeholder="请输入创建者" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="创建部门" prop="deptId">
              <a-input v-model="form.deptId" placeholder="请输入创建部门" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="创建名称" prop="userName">
              <a-input v-model="form.userName" placeholder="请输入创建名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="部门名称" prop="deptName">
              <a-input v-model="form.deptName" placeholder="请输入部门名称" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="公司ID" prop="companyId">
              <a-input v-model="form.companyId" placeholder="请输入公司ID" />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="见实体类说明" prop="jinjianStatusValue">
              <a-input
                v-model="form.jinjianStatusValue"
                placeholder="请输入见实体类说明"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="见实体类说明" prop="managerLockNums">
              <a-input
                v-model="form.managerLockNums"
                placeholder="请输入见实体类说明"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="见实体类说明" prop="managerLockTimes">
              <a-input-number
                v-model="form.managerLockTimes"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="见实体类说明"
              prop="customerToGonghaiTimes"
            >
              <a-input-number
                v-model="form.customerToGonghaiTimes"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="见实体类说明" prop="isCustomerToGonghai">
              <a-input-number
                v-model="form.isCustomerToGonghai"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="见实体类说明"
              prop="contactTimesToGonghaiOne"
            >
              <a-input-number
                v-model="form.contactTimesToGonghaiOne"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="见实体类说明"
              prop="contactTimesToGonghaiTwo"
            >
              <a-input-number
                v-model="form.contactTimesToGonghaiTwo"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="见实体类说明"
              prop="contactTimesToGonghaiThree"
            >
              <a-input-number
                v-model="form.contactTimesToGonghaiThree"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="见实体类说明"
              prop="isGetXianSuoToGonghai"
            >
              <a-input-number
                v-model="form.isGetXianSuoToGonghai"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="见实体类说明"
              prop="xianSuoToGonghaiTimes"
            >
              <a-input-number
                v-model="form.xianSuoToGonghaiTimes"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item
              label="见实体类说明"
              prop="contactTimesToGonghaiByXianSuoChi"
            >
              <a-input-number
                v-model="form.contactTimesToGonghaiByXianSuoChi"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="${comment}" prop="startTime">
              <a-date-picker
                v-model="form.startTime"
                valueFormat="YYYY-MM-DD"
                :show-today="true"
                placeholder="选择日期"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="${comment}" prop="endTime">
              <a-date-picker
                v-model="form.endTime"
                valueFormat="YYYY-MM-DD"
                :show-today="true"
                placeholder="选择日期"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="${comment}" prop="isRepMarkTimes">
              <a-input-number
                v-model="form.isRepMarkTimes"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12">
            <a-form-model-item label="排序" prop="sort">
              <a-input-number
                v-model="form.sort"
                :min="0"
                style="width: 100%"
              />
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-spin>
      <div class="bottom-control">
        <a-space>
          <a-button @click="cancel"> 取消 </a-button>
          <a-button type="primary" @click="submitForm"> 保存 </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import BizBusinessSetEditForm from "./BizBusinessSetForm";
export default {
  ...BizBusinessSetEditForm,
};
</script>
